package c.main.jdbc;

import c.main.core.C;

import javax.sql.DataSource;

/**
 * Author: chengwei
 * Date:   2016/3/23
 * Time:   17:02
 */
public class JdbcManager {
    public static JdbcTemplate getJdbcTemplate(DataSource ds) {
        return new SqlJdbcTemplate(ds);
    }

    public static JdbcTemplate getJdbcTemplate() {
        DataSource ds = C.getDataSource();
        return getJdbcTemplate(ds);
    }
}
